package entity;

import java.util.Date;
public class Order {
    private Integer orderId;

    private Integer productId;

    private Date orderTime;

    private Integer userId;

    private Integer number;//数量

    private String state;//状态

    public Order(Integer orderId, Integer productId, Date orderTime, Integer userId, Integer number, String state) {
        this.orderId = orderId;
        this.productId = productId;
        this.orderTime = orderTime;
        this.userId = userId;
        this.number = number;
        this.state = state;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }
}
